package com.vanysoft.business.base.team.dao;

import com.vanysoft.business.base.team.entity.TBaseTeamUsers;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BaseTeamUsersMapper {
    int deleteByPrimaryKey(String userTeamId);

    int insert(TBaseTeamUsers record);

    int insertSelective(TBaseTeamUsers record);

    TBaseTeamUsers selectByPrimaryKey(String userTeamId);

    int updateByPrimaryKeySelective(TBaseTeamUsers record);

    int updateByPrimaryKey(TBaseTeamUsers record);

    int queryTeamUserCount(String teamCode);

    int checkUserBelongToTeam(@Param("userCode") String userCode, @Param("teamCode") String teamCode);

    /**
     * Function Name               queryTeamUsers
     *
     * @param teamCode
     * @return
     * @description TODO(根据群组编号查询群组下用户信息)
     * Modify History:              Date             Programmer       Notes
     * ---------        ---------------  ---------
     * 2017年8月25日 下午4:45:10          SharpClaw_x                     Initial
     * *********************************************************************
     */
    List<Map> queryTeamUsers(String teamCode);

    int deleteTeamUser(String userId);
}